import 'package:flutter/material.dart';

/* 其他 */
class OtherPage extends StatefulWidget {
  @override
  _OtherPageState createState() => _OtherPageState();
}
 
class _OtherPageState extends State<OtherPage> {

  void navigateNamed(String routeName){
    Navigator.pushNamed(context, routeName);
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Center(
          child:  Text('其他'),
        ),
        elevation: 0.0,
      ),
      body: Container(
        padding: EdgeInsets.all(16.0),
        child: ListView(
          children: <Widget>[
            Card(
              child: ListTile(
                leading: const Icon(Icons.flight_land),
                title: const Text('数据表DataTable'),
                onTap: () { /* react to the tile being tapped */ }
              ),
            ),
            Card(
              child: ListTile(
                leading: FlutterLogo(),
                title: Text('日期时间'),
                onTap: (){
                  navigateNamed('datetime');
                },
              ),
            ),
          ],
        ),
      ),
    );
  }
}
